package com.lifeng.finance.demo.entity;

import com.lifeng.finance.demo.utils.Time;

import static com.lifeng.finance.demo.utils.Time.getCurrentTime;

public class Project{
    int id;
    int customerId;
    String name;
    String createTime;
    String updateTime;

    public Project(int customerId, String name) {
        this.name = name;
        this.customerId = customerId;
        createTime = getCurrentTime();
        updateTime = getCurrentTime();
    }

    public Project(int id, int customerId, String name, String createTime, String updateTime) {
        this.id = id;
        this.customerId = customerId;
        this.name = name;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public int getCustomerId() {
        return customerId;
    }
    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        updateTime = getCurrentTime();
    }

    public String getCreateTime() {
        return createTime;
    }


    public String getUpdateTime() {
        return updateTime;
    }


}
